package com.sagacity.framework.api.service;

import com.sagacity.framework.api.model.request.GenericQueryBO;
import com.sagacity.framework.api.model.response.PageResult;
import com.sagacity.framework.api.model.response.ResponseEntity;
import com.sagacity.framework.util.RequestUtil;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.PrintWriter;
import java.io.Serializable;
import java.util.List;

public abstract class BaseFallbackService<T> implements BaseRemoteService<T> {
    @Override
    public ResponseEntity<Integer> insert(T entity) {
        return null;
    }

    @Override
    public ResponseEntity<Integer> deleteById(T entity) {
        return null;
    }

    @Override
    public ResponseEntity<Integer> disableById(T entity) {
        return null;
    }

    @Override
    public ResponseEntity<Integer> updateById(T entity) {
        return null;
    }

    @Override
    public ResponseEntity<T> getById(@Valid @NotNull(message = "请求参数[id]不能为空") Serializable id) {
        return null;
    }

    @Override
    public ResponseEntity<List<T>> getByIds(@Valid @NotNull(message = "请求参数[idList]不能为空") List<Serializable> idList) {
        return null;
    }

    @Override
    public ResponseEntity<T> get(T entity) {
        return null;
    }

    @Override
    public ResponseEntity<List<T>> list(T entity) {
        return null;
    }

    @Override
    public ResponseEntity<PageResult<T>> search(GenericQueryBO<T> queryBO) {
        return null;
    }

    @Override
    public void export(GenericQueryBO<T> queryBO) {
    }
}
